//
//  KDMListCell.h
//  PublicSentimentMonitorSystem
//
//  Created by 魏强 on 15/11/2.
//  Copyright © 2015年 魏强. All rights reserved.
//

#import <UIKit/UIKit.h>
@class KDMListCellBaseModel;
@protocol KDMListCellDelegate;
@interface KDMListCell : UITableViewCell
@property (nonatomic, weak) id<KDMListCellDelegate> delegate;

@property (nonatomic, strong) KDMListCellBaseModel *model;
@property (nonatomic, assign, getter=isHighlight) BOOL highlight;

+ (instancetype)cellWithTableView:(UITableView *)tableView andVersion:(NSInteger)version;
@end

@protocol KDMListCellDelegate <NSObject>
/**
 *  上报按钮被点击了
 */
- (void)KDMListCell:(KDMListCell *)cell reportBtnClick:(UIButton *)reportBtn;
/**
 *  相关按钮被点击了
 */
- (void)KDMListCell:(KDMListCell *)cell relationBtnClick:(UIButton *)relationBtn;

/**
 *  收藏按钮被点击了
 */
- (void)KDMListCell:(KDMListCell *)cell collectBtnClick:(UIButton *)collectBtn;

@end